package com.cw.mapper;

import com.cw.beans.*;
import com.cw.util.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

@Repository
public interface AssetMapper {
    ArrayList <Asset> getFiveAsset();
    ArrayList <Asset> getAllAssets( @Param("asset") Asset asset ,@Param("page") Page page);
    int getAllAssets1(@Param("asset") Asset asset);
   int  getUpAsset();
   int getAllAssetSum();
   int getUseAsset();
   int  getNoUseAsset();
   ArrayList<Zc_type_num> getAssetByByte();

   Integer getMonthMany(String time);

    void setAsset(@Param("asset") Asset asset);

//    Asset getAssetId();

    void setAssetState(@Param("asset_id") Integer zcAsset);

   void updateAssetMaintain(int id);
   int getState(int id);

    Integer getnum(@Param("dept_id") Integer dept_id);

    Integer getvalue(@Param("dept_id") Integer dept_id);

    Integer getnum1(@Param("dept_id") Integer dept_id);

    Integer getvalue1(@Param("dept_id") Integer dept_id);

    Integer getnum2(@Param("dept_id") Integer dept_id);

    Integer getvalue2(@Param("dept_id") Integer dept_id);
}

